package co.com.javeriana.aes.touresbalon.webserviceclients;

import java.util.List;

/**
 *
 * @author Jonathan Fernandez <jonathan.fvargas@gmail.com>
 */
public class Search {

    public static List<java.lang.Integer> getTop5Products(int orderid) {
        
        java.util.List<java.lang.Integer> result = null;
        try { // Call Web Service Operation
            co.com.javeriana.aes.oms.ejb.orders.service.Orders service = new co.com.javeriana.aes.oms.ejb.orders.service.Orders();
            co.com.javeriana.aes.oms.ejb.orders.service.OrdersWebService port = service.getOrdersWebServicePort();
            // TODO process result here
             result = port.getTopFiveProducts(orderid);
            //System.out.println("Result = " + result);
        } catch (Exception ex) {
    // TODO handle custom exceptions here
        }
        
        return result;

    }

}
